<?php

require_once ROOT_SERVICES . DS . 'shipping_provider_interface.php';
require_once ROOT_LIBRARY_HTMLDOM . DS . 'simple_html_dom.php';

// viettel_post
class shipping_provider_simple_6 implements shipping_provider_interface {

    private $_shipment;

    public function __construct($shipment) {
        $this->_shipment = $shipment;
    }

    public function get_status_shipping() {
        try
        {
			$status_list = "";
            $tracking_number = $this->_shipment ['tracking_number'];
            $mgs = "Đơn hàng đã giao cho hãng vận chuyển bởi <strong>Seabornes</strong> với mã vận đơn {$tracking_number} <br/>
                    <ul id=\"6_{$tracking_number}\">
						<li><a href='#' id=\"a_6_{$tracking_number}\" onclick=\"getShipmentProvider(6,'Seabornes','{$tracking_number}')\">Xem chi tiết</a></li>
					</ul>";
                    

            $status_list [] = array(
                'time' => "",
                'status' => $mgs
            );
			
            return array('sortable' => FALSE, 'status_list' => $status_list);
        } catch (Exception $e)
        {
            return array('sortable' => FALSE, 'status_list' => null);
        }
    }

}

?>
